﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//任务
namespace Demo1
{
    enum TaskNPC 
    {
        /// <summary>
        /// 送信NPC
        /// </summary>
        BearerNPC,
        /// <summary>
        /// 杀怪NPC
        /// </summary>
        RemNPC,
        /// <summary>
        ///采集NPC
        /// </summary>
        GatherNPC
    }
    class Task : NPC
    {
        private string must;
        private TaskNPC Ttype;
        public Task(string name, NPCtype type, TaskNPC Ttype, string must) : base(name, type)
        {
            this.Ttype = Ttype;
            this.must = must;
        }
        public Task() { }

        public override void SpeakA()
        {
            Console.WriteLine("NPC{0}说：喂喂喂，帮帮我把这{1}的信送给军师",this.name,this.must);
        }

        public override void SpeakB()
        {
            Console.WriteLine("NPC{0}说：打{1}可以掉落我需要的物品，给我带8个过来", this.name, this.must);
        }

        public override void SpeakC()
        {
            Console.WriteLine("NPC{0}说：我老婆要生了，需要{1}，你可以给我带些来吗", this.name, this.must);
        }
    }
}
